User Function SYSUPD03()
Local aAlter	:= {}

aAdd(aAlter,{'I','SX7','N1_AQUISIC001','X7_CAMPO','','N1_AQUISIC'})
aAdd(aAlter,{'I','SX7','N1_AQUISIC001','X7_SEQUENC','','001'})
aAdd(aAlter,{'I','SX7','N1_AQUISIC001','X7_REGRA','','gdfieldput("N3_AQUISIC",M->N1_AQUISIC,1),OGET:REFRESH(),M->N1_AQUISIC                               '})
aAdd(aAlter,{'I','SX7','N1_AQUISIC001','X7_CDOMIN','','N1_AQUISIC'})
aAdd(aAlter,{'I','SX7','N1_AQUISIC001','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_AQUISIC001','X7_SEEK','','N'})
aAdd(aAlter,{'I','SX7','N1_AQUISIC001','X7_ALIAS','','   '})
aAdd(aAlter,{'I','SX7','N1_AQUISIC001','X7_ORDEM','',             0})
aAdd(aAlter,{'I','SX7','N1_AQUISIC001','X7_CHAVE','','                                                                                                    '})
aAdd(aAlter,{'I','SX7','N1_AQUISIC001','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_AQUISIC001','X7_PROPRI','','U'})

aAdd(aAlter,{'I','SX7','N1_CHAPA  001','X7_CAMPO','','N1_CHAPA  '})
aAdd(aAlter,{'I','SX7','N1_CHAPA  001','X7_SEQUENC','','001'})
aAdd(aAlter,{'I','SX7','N1_CHAPA  001','X7_REGRA','','REPLICATE(SUBSTR(CFILANT,2,1),3)+LEFT(M->N1_CHAPA,7)                                                '})
aAdd(aAlter,{'I','SX7','N1_CHAPA  001','X7_CDOMIN','','N1_CBASE  '})
aAdd(aAlter,{'I','SX7','N1_CHAPA  001','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_CHAPA  001','X7_SEEK','','N'})
aAdd(aAlter,{'I','SX7','N1_CHAPA  001','X7_ALIAS','','   '})
aAdd(aAlter,{'I','SX7','N1_CHAPA  001','X7_ORDEM','',             0})
aAdd(aAlter,{'I','SX7','N1_CHAPA  001','X7_CHAVE','','                                                                                                    '})
aAdd(aAlter,{'I','SX7','N1_CHAPA  001','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_CHAPA  001','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_DESCRIC001','X7_CAMPO','','N1_DESCRIC'})
aAdd(aAlter,{'I','SX7','N1_DESCRIC001','X7_SEQUENC','','001'})
aAdd(aAlter,{'I','SX7','N1_DESCRIC001','X7_REGRA','','aeval(acols,{|z,y|gdfieldput("N3_HISTOR",M->N1_DESCRIC,Y)}),OGET:REFRESH(),M->N1_DESCRIC            '})
aAdd(aAlter,{'I','SX7','N1_DESCRIC001','X7_CDOMIN','','N1_DESCRIC'})
aAdd(aAlter,{'I','SX7','N1_DESCRIC001','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_DESCRIC001','X7_SEEK','','N'})
aAdd(aAlter,{'I','SX7','N1_DESCRIC001','X7_ALIAS','','   '})
aAdd(aAlter,{'I','SX7','N1_DESCRIC001','X7_ORDEM','',             0})
aAdd(aAlter,{'I','SX7','N1_DESCRIC001','X7_CHAVE','','                                                                                                    '})
aAdd(aAlter,{'I','SX7','N1_DESCRIC001','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_DESCRIC001','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_FORNEC 003','X7_CAMPO','','N1_FORNEC '})
aAdd(aAlter,{'I','SX7','N1_FORNEC 003','X7_SEQUENC','','003'})
aAdd(aAlter,{'I','SX7','N1_FORNEC 003','X7_REGRA','','SA2->A2_NOME                                                                                        '})
aAdd(aAlter,{'I','SX7','N1_FORNEC 003','X7_CDOMIN','','N1_XNMFORN'})
aAdd(aAlter,{'I','SX7','N1_FORNEC 003','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_FORNEC 003','X7_SEEK','','S'})
aAdd(aAlter,{'I','SX7','N1_FORNEC 003','X7_ALIAS','','SA2'})
aAdd(aAlter,{'I','SX7','N1_FORNEC 003','X7_ORDEM','',              1})
aAdd(aAlter,{'I','SX7','N1_FORNEC 003','X7_CHAVE','','XFILIAL("SA2")+M->(N1_FORNEC+ALLTRIM(N1_LOJA))                                                      '})
aAdd(aAlter,{'I','SX7','N1_FORNEC 003','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_FORNEC 003','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  003','X7_CAMPO','','N1_GRUPO  '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  003','X7_SEQUENC','','003'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  003','X7_REGRA','','1                                                                                                   '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  003','X7_CDOMIN','','N1_QUANTD '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  003','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  003','X7_SEEK','','N'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  003','X7_ALIAS','','   '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  003','X7_ORDEM','',             0})
aAdd(aAlter,{'I','SX7','N1_GRUPO  003','X7_CHAVE','','                                                                                                    '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  003','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  003','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  004','X7_CAMPO','','N1_GRUPO  '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  004','X7_SEQUENC','','004'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  004','X7_REGRA','','SD1->D1_VUNIT                                                                                       '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  004','X7_CDOMIN','','N1_VLAQUIS'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  004','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  004','X7_SEEK','','S'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  004','X7_ALIAS','','SD1'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  004','X7_ORDEM','',              1})
aAdd(aAlter,{'I','SX7','N1_GRUPO  004','X7_CHAVE','','XFILIAL("SD1")+M->(N1_NFISCAL+N1_NSERIE+N1_FORNEC+N1_LOJA+N1_PRODUTO)                               '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  004','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  004','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  005','X7_CAMPO','','N1_GRUPO  '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  005','X7_SEQUENC','','005'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  005','X7_REGRA','','SD1->D1_PEDIDO                                                                                      '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  005','X7_CDOMIN','','N1_XPEDIDO'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  005','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  005','X7_SEEK','','N'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  005','X7_ALIAS','','   '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  005','X7_ORDEM','',             0})
aAdd(aAlter,{'I','SX7','N1_GRUPO  005','X7_CHAVE','','                                                                                                    '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  005','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  005','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  006','X7_CAMPO','','N1_GRUPO  '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  006','X7_SEQUENC','','006'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  006','X7_REGRA','','SC7->C7_NUMSC                                                                                       '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  006','X7_CDOMIN','','N1_XSOLICI'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  006','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  006','X7_SEEK','','S'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  006','X7_ALIAS','','SC7'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  006','X7_ORDEM','',              1})
aAdd(aAlter,{'I','SX7','N1_GRUPO  006','X7_CHAVE','','XFILIAL("SC7")+SD1->(D1_PEDIDO+D1_ITEMPC)                                                           '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  006','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  006','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  007','X7_CAMPO','','N1_GRUPO  '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  007','X7_SEQUENC','','007'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  007','X7_REGRA','','gdfieldput("N3_AQUISIC",M->N1_AQUISIC,1),OGET:REFRESH(),M->N1_GRUPO                                 '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  007','X7_CDOMIN','','N1_GRUPO  '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  007','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  007','X7_SEEK','','N'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  007','X7_ALIAS','','   '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  007','X7_ORDEM','',             0})
aAdd(aAlter,{'I','SX7','N1_GRUPO  007','X7_CHAVE','','                                                                                                    '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  007','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  007','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  008','X7_CAMPO','','N1_GRUPO  '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  008','X7_SEQUENC','','008'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  008','X7_REGRA','','M->N1_GRUPO                                                                                         '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  008','X7_CDOMIN','','N1_GRUPO  '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  008','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  008','X7_SEEK','','S'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  008','X7_ALIAS','','SF1'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  008','X7_ORDEM','',              1})
aAdd(aAlter,{'I','SX7','N1_GRUPO  008','X7_CHAVE','','XFILIAL("SF1")+M->(N1_NFISCAL+N1_NSERIE+N1_FORNEC+N1_LOJA)                                          '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  008','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  008','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  009','X7_CAMPO','','N1_GRUPO  '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  009','X7_SEQUENC','','009'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  009','X7_REGRA','','SE2->E2_VENCREA                                                                                     '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  009','X7_CDOMIN','','N1_XDTPGTO'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  009','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  009','X7_SEEK','','S'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  009','X7_ALIAS','','SE2'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  009','X7_ORDEM','',              19})
aAdd(aAlter,{'I','SX7','N1_GRUPO  009','X7_CHAVE','','XFILIAL("SE2")+SF1->(F1_PREFIXO+F1_DOC+"NF "+F1_FORNECE+F1_LOJA)                                    '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  009','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  009','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  010','X7_CAMPO','','N1_GRUPO  '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  010','X7_SEQUENC','','010'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  010','X7_REGRA','','gdfieldput("N3_CCUSTO",SD1->D1_CC,1),OGET:REFRESH(),M->N1_GRUPO                                     '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  010','X7_CDOMIN','','N1_GRUPO  '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  010','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  010','X7_SEEK','','N'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  010','X7_ALIAS','','   '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  010','X7_ORDEM','',             0})
aAdd(aAlter,{'I','SX7','N1_GRUPO  010','X7_CHAVE','','                                                                                                    '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  010','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  010','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  011','X7_CAMPO','','N1_GRUPO  '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  011','X7_SEQUENC','','011'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  011','X7_REGRA','','gdfieldput("N3_SUBCTA",SD1->D1_ITEMCTA,1),OGET:REFRESH(),M->N1_GRUPO                                '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  011','X7_CDOMIN','','N1_GRUPO  '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  011','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  011','X7_SEEK','','N'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  011','X7_ALIAS','','   '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  011','X7_ORDEM','',             0})
aAdd(aAlter,{'I','SX7','N1_GRUPO  011','X7_CHAVE','','                                                                                                    '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  011','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  011','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  012','X7_CAMPO','','N1_GRUPO  '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  012','X7_SEQUENC','','012'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  012','X7_REGRA','','"1"                                                                                                 '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  012','X7_CDOMIN','','N1_XTPORCA'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  012','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  012','X7_SEEK','','N'})
aAdd(aAlter,{'I','SX7','N1_GRUPO  012','X7_ALIAS','','   '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  012','X7_ORDEM','',             0})
aAdd(aAlter,{'I','SX7','N1_GRUPO  012','X7_CHAVE','','                                                                                                    '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  012','X7_CONDIC','','EMPTY(ALLTRIM(M->N1_XTPORCA))           '})
aAdd(aAlter,{'I','SX7','N1_GRUPO  012','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_LOJA   001','X7_CAMPO','','N1_LOJA   '})
aAdd(aAlter,{'I','SX7','N1_LOJA   001','X7_SEQUENC','','001'})
aAdd(aAlter,{'I','SX7','N1_LOJA   001','X7_REGRA','','SA2->A2_NOME                                                                                        '})
aAdd(aAlter,{'I','SX7','N1_LOJA   001','X7_CDOMIN','','N1_XNMFORN'})
aAdd(aAlter,{'I','SX7','N1_LOJA   001','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_LOJA   001','X7_SEEK','','S'})
aAdd(aAlter,{'I','SX7','N1_LOJA   001','X7_ALIAS','','SA2'})
aAdd(aAlter,{'I','SX7','N1_LOJA   001','X7_ORDEM','',              1})
aAdd(aAlter,{'I','SX7','N1_LOJA   001','X7_CHAVE','','XFILIAL("SA2")+M->(N1_FORNEC+N1_LOJA)                                                               '})
aAdd(aAlter,{'I','SX7','N1_LOJA   001','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_LOJA   001','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_PRODUTO001','X7_CAMPO','','N1_PRODUTO'})
aAdd(aAlter,{'I','SX7','N1_PRODUTO001','X7_SEQUENC','','001'})
aAdd(aAlter,{'I','SX7','N1_PRODUTO001','X7_REGRA','','SB1->B1_DESC                                                                                        '})
aAdd(aAlter,{'I','SX7','N1_PRODUTO001','X7_CDOMIN','','N1_XDSCPRO'})
aAdd(aAlter,{'I','SX7','N1_PRODUTO001','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_PRODUTO001','X7_SEEK','','S'})
aAdd(aAlter,{'I','SX7','N1_PRODUTO001','X7_ALIAS','','SB1'})
aAdd(aAlter,{'I','SX7','N1_PRODUTO001','X7_ORDEM','',              1})
aAdd(aAlter,{'I','SX7','N1_PRODUTO001','X7_CHAVE','','XFILIAL("SB1")+M->N1_PRODUTO                                                                        '})
aAdd(aAlter,{'I','SX7','N1_PRODUTO001','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_PRODUTO001','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS001','X7_CAMPO','','N1_VLAQUIS'})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS001','X7_SEQUENC','','001'})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS001','X7_REGRA','','gdfieldput("N3_VORIG1",M->N1_VLAQUIS,1),OGET:REFRESH(),M->N1_VLAQUIS                                '})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS001','X7_CDOMIN','','N1_VLAQUIS'})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS001','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS001','X7_SEEK','','N'})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS001','X7_ALIAS','','   '})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS001','X7_ORDEM','',             0})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS001','X7_CHAVE','','                                                                                                    '})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS001','X7_CONDIC','','INCLUI                                  '})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS001','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS002','X7_CAMPO','','N1_VLAQUIS'})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS002','X7_SEQUENC','','002'})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS002','X7_REGRA','','gdfieldput("N3_VMXDEPR",M->N1_VLAQUIS,1),OGET:REFRESH(),M->N1_VLAQUIS                               '})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS002','X7_CDOMIN','','N1_VLAQUIS'})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS002','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS002','X7_SEEK','','N'})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS002','X7_ALIAS','','   '})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS002','X7_ORDEM','',             0})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS002','X7_CHAVE','','                                                                                                    '})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS002','X7_CONDIC','','INCLUI                                  '})
aAdd(aAlter,{'I','SX7','N1_VLAQUIS002','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_XCDDESB001','X7_CAMPO','','N1_XCDDESB'})
aAdd(aAlter,{'I','SX7','N1_XCDDESB001','X7_SEQUENC','','001'})
aAdd(aAlter,{'I','SX7','N1_XCDDESB001','X7_REGRA','','SX5->X5_DESCRI                                                                                      '})
aAdd(aAlter,{'I','SX7','N1_XCDDESB001','X7_CDOMIN','','N1_XDSCDEB'})
aAdd(aAlter,{'I','SX7','N1_XCDDESB001','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_XCDDESB001','X7_SEEK','','S'})
aAdd(aAlter,{'I','SX7','N1_XCDDESB001','X7_ALIAS','','SX5'})
aAdd(aAlter,{'I','SX7','N1_XCDDESB001','X7_ORDEM','',              1})
aAdd(aAlter,{'I','SX7','N1_XCDDESB001','X7_CHAVE','','XFILIAL("SX5")+"ZP"+N1_XCDDESB                                                                      '})
aAdd(aAlter,{'I','SX7','N1_XCDDESB001','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_XCDDESB001','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N1_XMOTBX 001','X7_CAMPO','','N1_XMOTBX '})
aAdd(aAlter,{'I','SX7','N1_XMOTBX 001','X7_SEQUENC','','001'})
aAdd(aAlter,{'I','SX7','N1_XMOTBX 001','X7_REGRA','','SX5->X5_DESCRI                                                                                      '})
aAdd(aAlter,{'I','SX7','N1_XMOTBX 001','X7_CDOMIN','','N1_XDSCMTB'})
aAdd(aAlter,{'I','SX7','N1_XMOTBX 001','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N1_XMOTBX 001','X7_SEEK','','S'})
aAdd(aAlter,{'I','SX7','N1_XMOTBX 001','X7_ALIAS','','SX5'})
aAdd(aAlter,{'I','SX7','N1_XMOTBX 001','X7_ORDEM','',              1})
aAdd(aAlter,{'I','SX7','N1_XMOTBX 001','X7_CHAVE','','XFILIAL("SX5")+"ZO"+M->N1_XMOTBX                                                                    '})
aAdd(aAlter,{'I','SX7','N1_XMOTBX 001','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N1_XMOTBX 001','X7_PROPRI','','U'})

aAdd(aAlter,{'I','SX7','N3_CUSTBEM001','X7_CAMPO','','N3_CUSTBEM'})
aAdd(aAlter,{'I','SX7','N3_CUSTBEM001','X7_SEQUENC','','001'})
aAdd(aAlter,{'I','SX7','N3_CUSTBEM001','X7_REGRA','','CTT->CTT_DESC01                                                                                     '})
aAdd(aAlter,{'I','SX7','N3_CUSTBEM001','X7_CDOMIN','','N3_XDSCCBE'})
aAdd(aAlter,{'I','SX7','N3_CUSTBEM001','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N3_CUSTBEM001','X7_SEEK','','S'})
aAdd(aAlter,{'I','SX7','N3_CUSTBEM001','X7_ALIAS','','CTT'})
aAdd(aAlter,{'I','SX7','N3_CUSTBEM001','X7_ORDEM','',              1})
aAdd(aAlter,{'I','SX7','N3_CUSTBEM001','X7_CHAVE','','XFILIAL("CTT")+M->N3_CUSTBEM                                                                        '})
aAdd(aAlter,{'I','SX7','N3_CUSTBEM001','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N3_CUSTBEM001','X7_PROPRI','','U'})
aAdd(aAlter,{'I','SX7','N3_SUBCCON001','X7_CAMPO','','N3_SUBCCON'})
aAdd(aAlter,{'I','SX7','N3_SUBCCON001','X7_SEQUENC','','001'})
aAdd(aAlter,{'I','SX7','N3_SUBCCON001','X7_REGRA','','CTD->CTD_DESC01                                                                                     '})
aAdd(aAlter,{'I','SX7','N3_SUBCCON001','X7_CDOMIN','','N3_XDSITBE'})
aAdd(aAlter,{'I','SX7','N3_SUBCCON001','X7_TIPO','','P'})
aAdd(aAlter,{'I','SX7','N3_SUBCCON001','X7_SEEK','','S'})
aAdd(aAlter,{'I','SX7','N3_SUBCCON001','X7_ALIAS','','CTD'})
aAdd(aAlter,{'I','SX7','N3_SUBCCON001','X7_ORDEM','',              1})
aAdd(aAlter,{'I','SX7','N3_SUBCCON001','X7_CHAVE','','XFILIAL("CTD")+M->N3_SUBCCON                                                                        '})
aAdd(aAlter,{'I','SX7','N3_SUBCCON001','X7_CONDIC','','                                        '})
aAdd(aAlter,{'I','SX7','N3_SUBCCON001','X7_PROPRI','','U'})

aAdd(aAlter,{'I','SXA','SN17','XA_ALIAS','','SN1'})
aAdd(aAlter,{'I','SXA','SN17','XA_ORDEM','','7'})
aAdd(aAlter,{'I','SXA','SN17','XA_DESCRIC','','Baixa                         '})
aAdd(aAlter,{'I','SXA','SN17','XA_DESCSPA','','Baixa                         '})
aAdd(aAlter,{'I','SXA','SN17','XA_DESCENG','','Baixa                         '})
aAdd(aAlter,{'I','SXA','SN17','XA_PROPRI','','U'})
aAdd(aAlter,{'I','SXA','SN17','XA_AGRUP','','   '})
aAdd(aAlter,{'I','SXA','SN17','XA_TIPO','',' '})

Return aAlter
